package assignment9.Factory;

import assignment9.*;

public class Factor {
    private class PContents extends Content {
    	private int i = 11;
        public int value() { 
        	return i; 
        }
    }

    protected class PDestination implements Destination {
    	private String label;
        private PDestination(String whereTo) { 
        	label = whereTo;
        }

        @Override
        public String readLabel() { 
        	return label; 
        }
    }
    
    public Destination dest(String s) { 
    	return new PDestination(s); 
    }
    
    public Content cont() { 
    	return new PContents(); 
    }
}